import * as React from 'react';
import {CardStyleInterpolators, createStackNavigator} from '@react-navigation/stack';
import Login from "./login/Login";
import Home from "./home/Home";
import Contactperson from "./contactperson/Contactperson";
import TabNavigator from "./TabNAvigator";

const Stack = createStackNavigator();

function Navigator() {
    return (

            <Stack.Navigator initialRouteName="Contactperson" screenOptions={{headerShown: false,cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS,}} >
                <Stack.Screen name="Login" component={Login} />
                <Stack.Screen name={"Home"} component={Home}/>
                <Stack.Screen name={"Contactperson"} component={Contactperson}/>
                <Stack.Screen name="bar" component={TabNavigator} />
            </Stack.Navigator>
    );
}

export default Navigator;
